/* Copyright 2003, 2008 Gregor Hohpe (http://www.eaipatterns.com) */

using System.Xml;

namespace MessageGateway
{
    /* This channel is the "/dev/null" of messaging. It eats messages. 
     * Using this channel one can turn a Router into a Filter.
     */

    public class NullChannel : IMessageSender, IMessageReceiver
    {
        public void AddEventHandler(OnMsgEvent handler)
        {
        }

        public void Activate()
        {
        }

        public void Send(XmlDocument msg)
        {
            // all messages go bye bye
        }
    }
}
